<%@ page import="java.util.List" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>Bootstrap菜单</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <!-- Bootstrap -->
    <link href="${pageContext.request.contextPath}/js/plugin/bootstrap-menu/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/js/plugin/bootstrap-menu/css/font-awesome.min.css">
    <script src="${pageContext.request.contextPath}/js/plugin/bootstrap-menu/js/jquery-1.8.2.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/plugin/bootstrap-menu/js/bootstrap.min.js"></script>
    <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/common.js"></script>

    <style type="text/css">
        body {
            color: #000;
            font-size: 12px;
            background-color: #f6f6f6;
            font-family: "Helvetica Neue", Helvetica, STheiti, 微软雅黑, 宋体, Arial, Tahoma, sans-serif, serif;
        }

        /*左侧菜单*/
        .sidebar-menu {
            border-right: 0px solid #c4c8cb;
        }

        /*一级菜单*/
        .menu-first {
            height: 45px;
            line-height: 45px;
            background-color: #e9e9e9;
            border-top: 1px solid #efefef;
            border-bottom: 1px solid #e1e1e1;
            padding: 0;
            font-size: 14px;
            font-weight: normal;
            text-align: center;
        }

        /*一级菜单鼠标划过状态*/
        .menu-first:hover {
            text-decoration: none;
            background-color: #d6d4d5;
            border-top: 1px solid #b7b7b7;
            border-bottom: 1px solid #acacac;
        }

        /*二级菜单*/
        .menu-second li a {
            background-color: #f6f6f6;
            height: 31px;
            line-height: 31px;
            border-top: 1px solid #efefef;
            border-bottom: 1px solid #efefef;
            font-size: 12px;
            text-align: center;
        }

        /*二级菜单鼠标划过样式*/
        .menu-second li a:hover {
            text-decoration: none;
            background-color: #66c3ec;
            border-top: 1px solid #83ceed;
            border-bottom: 1px solid #83ceed;
            border-right: 3px solid #f8881c;
            border-left: 3px solid #66c3ec;
        }

        /*二级菜单选中状态*/
        .menu-second-selected {
            background-color: #66c3ec;
            height: 31px;
            line-height: 31px;
            border-top: 1px solid #83ceed;
            border-bottom: 1px solid #83ceed;
            border-right: 3px solid #f8881c;
            border-left: 3px solid #66c3ec;
            text-align: center;
        }

        /*覆盖bootstrap的样式*/
        .nav-list, .nav-list li a {
            padding: 0px;
            margin: 0px;
        }

        .menu-left {
            text-align: left;
            margin-left: 40px;
        }

        A {
            cursor: pointer
        }
    </style>

    <script>
        $(document).ready(function () {
            parent.rightFrame.location = '<%=request.getContextPath() %>/api/url/link';
        });

        function doJump(jumpUrl) {
            var url = '<%=request.getContextPath()%>/api/url/getToken';
            JSendAjax(url, {"jumpUrl": jumpUrl});
        }

        function JCollBack(_data) {
            if (_data.success) {
                parent.rightFrame.location = fixUrl(_data.data.jumpUrl, _data.data.token)
            }
        }
    </script>
</head>
<body>
<!--Sidebar content-->
<div class="sidebar-menu">

    <a href="#a" class="nav-header menu-first collapsed" data-toggle="collapse">
        <div class="menu-left"><i class="icon-user-md icon-book"></i> 产品线</div>
    </a>
    <ul id="a" class="nav nav-list menu-second collapse">
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/tools-server_list')"><i class="icon-list"></i> 服务列表</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/register-list')"><i class="icon-list"></i> 产品线登记服务</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-pipeline-fetch')"><i class="icon-list"></i>产品线多环境(新)</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-pipeline-queue')"><i class="icon-list"></i> 计量修复</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-myrepair-list')"><i class="icon-list"></i> 修量记录</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measure-fetch_server')"><i class="icon-list"></i> fetch_server</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/mergerule-mergerule_server')"><i class="icon-list"></i> mergerule_server</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/meta-meta_server')"><i class="icon-list"></i> meta_server</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/etl-result_kss')"><i class="icon-list"></i> KSS快速查看</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measure-measure_relation')"><i class="icon-list"></i> 计量关联查询</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measure-dw_call_hist_list')"><i class="icon-list"></i> 计量调用记录</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measure-dw_extra_log_list')"><i class="icon-list"></i> 计量调用记录(扩展信息)</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/meta-region')"><i class="icon-list"></i>基础数据-机房</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/meta-product_group')"><i class="icon-list"></i>基础数据-产品组</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/meta-product_subtype')"><i class="icon-list"></i>基础数据-产品子类型</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/meta-bill_measure_item')"><i class="icon-list"></i>基础数据-计量项</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/meta-product_subtype_bill_item')"><i class="icon-list"></i>基础数据-产品子类型-计费项关系</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-eip-list')"><i class="icon-list"></i>EIP数据报表明细</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-eip-eip_report')"><i class="icon-list"></i>EIP数据报表</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-cnt-list')"><i class="icon-list"></i>计量统计</a></div>
        </li>
    </ul>

    <a href="#a1" class="nav-header menu-first collapsed" data-toggle="collapse">
        <div class="menu-left"><i class="icon-user-md icon-book"></i> 数据中台</div>
    </a>
    <ul id="a1" class="nav nav-list menu-second collapse">
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/console-lifecycle-list')"><i class="icon-list"></i>中台 - 账单明细 </a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/data/lifecycle/raw/realtimes')"><i class="icon-list"></i>中台 - 实时计量-调用次数 </a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/console-ks3-list')"><i class="icon-list"></i>中台 - 实时计量-ks3数据迁移</a></div>
        </li>
    </ul>

    <a href="#b1" class="nav-header menu-first collapsed" data-toggle="collapse">
        <div class="menu-left"><i class="icon-user-md icon-book"></i> 切片模块</div>
    </a>
    <ul id="b1" class="nav nav-list menu-second collapse">
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/rule-queue')"><i class="icon-list"></i>合同队列</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/rule_server')"><i class="icon-list"></i>合同接口</a></div>
        </li>
    </ul>

    <a href="#b" class="nav-header menu-first collapsed" data-toggle="collapse">
        <div class="menu-left"><i class="icon-user-md icon-book"></i> 通用模块</div>
    </a>
    <ul id="b" class="nav nav-list menu-second collapse">
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/tools-server_list')"><i class="icon-list"></i> 服务器列表</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="_blank" onclick="doJump('<%=request.getContextPath() %>/log/list')"><i class="icon-list"></i>日志级别调整</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="_blank" onclick="doJump('<%=request.getContextPath() %>/api/url/dic-list_server')"><i class="icon-list"></i>日志级别调整2</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/sys-schema_list')"><i class="icon-list"></i>schema_list</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-diff-diff_measure')"><i class="icon-list"></i>计量数据对比</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-diff-diff_result')"><i class="icon-list"></i>Result数据对比</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/tools-tools')"><i class="icon-list"></i>工具-日常使用</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/tools-tools_data')"><i class="icon-list"></i>工具-数据维护</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-echart-echart')"><i class="icon-list"></i>图表</a></div>
        </li>
    </ul>

    <a href="#c" class="nav-header menu-first collapsed" data-toggle="collapse">
        <div class="menu-left"><i class="icon-user-md icon-book"></i> 接口模块</div>
    </a>
    <ul id="c" class="nav nav-list menu-second collapse">
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/test-UidClient')"><i class="icon-list"></i> UidClient</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/test-Ks3Client')"><i class="icon-list"></i> Ks3Client</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/test-BandwidthClient')"><i class="icon-list"></i> BandwidthClient</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measurelog-kis_list')"><i class="icon-list"></i> Kis用户</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/fetch-cache-cache_list')"><i class="icon-list"></i> fetch_cache_list</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/etl-cache-cache_list')"><i class="icon-list"></i> etl_cache_list</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measurelog-product_uid_list?productType=CdnFile')"><i class="icon-list"></i> 标准计量-用户列表</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measurelog-product_uid_list?productType=kis')"><i class="icon-list"></i> 标准计量-用户列表(kis)</a></div>
        </li>

        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measurelog-dw_measure_mapping')"><i class="icon-list"></i> dw_measure_mapping</a></div>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/measurelog-dw_instance')"><i class="icon-list"></i> dw_instance</a></div>

        </li>
    </ul>
    <a href="#d" class="nav-header menu-first collapsed" data-toggle="collapse">
        <div class="menu-left"><i class="icon-user-md icon-book"></i>元数据</div>
    </a>
    <a href="#e" class="nav-header menu-first collapsed" data-toggle="collapse">
        <div class="menu-left"><i class="icon-user-md icon-filter"></i>ETL </div>
    </a>
    <ul id="e" class="nav nav-list menu-second collapse">
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/etl-etlApi')"><i class="icon-list"></i>ETL接口调用</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/etl-cache_properties')"><i class="icon-list"></i> cache_properties</a></div>
        </li>
        <li>
            <div class="menu-left"><a target="rightFrame" onclick="doJump('<%=request.getContextPath() %>/api/url/etl-sum_value')"><i class="icon-list"></i> 日志类用量查询</a></div>
        </li>

    </ul>
    <c:forEach var="menu" items="${dto}" varStatus="index">
        <a href="#menu${menu.id}" class="nav-header menu-first collapsed" data-toggle="collapse">
            <div class="menu-left"><i class="icon-user-md icon-book"></i> ${menu.name}</div>
        </a>
        <ul id="menu${menu.id}" class="nav nav-list collapse menu-second">
            <c:forEach var="c" items="${menu.children}">
                <li>
                    <div class="menu-left"><a target="rightFrame" href="javascript:" onclick="doJump('${c.url}')"><i class="icon-list"></i> ${c.name}</a></div>
                </li>
            </c:forEach>
        </ul>
    </c:forEach>
</div>
</body>
</html>
